import '../repositories/counter_repository.dart';

class IncrementCounter {
  final CounterRepository repository;

  IncrementCounter(this.repository);

  void call() {
    final counter = repository.getCounter();
    counter.value++;
    repository.saveCounter(counter);
  }
}